import requests
class IHRMLoginApi:
    #封装登录接口,
    @classmethod
    def login(cls,body):
        url = "http://ihrm2-test.itheima.net/api/sys/login"
        header = {"Content-Type": "application/json"}
        resp = requests.post(url=url, headers=header, json=body)
        return resp
